<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page contentType="text/html;charset=gb2312"%>



<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
  <link type="text/css" rel="stylesheet" href="css/style.css">
  <link type="text/css" rel="stylesheet" href="css/style.css">
  <link rel="stylesheet" href="css/bgstretcher.css">
<link rel="stylesheet" href="css/demo.css">
    <base href="<%=basePath%>">
    
    <title>My JSP 'home.jsp' starting page

    </title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="in.css">
	-->
<SCRIPT src="js/jquery.min.js" type=text/javascript></SCRIPT>
<SCRIPT src="js/jquery.min.js" type=text/javascript></SCRIPT>
<script type="text/javascript" src="js/jquery-1.11.0.js"></script>
<script type="text/javascript" src="js/jquery-bgstretcher-3.0.1.min.js"></script>
<script type="text/javascript">
        jQuery(function($){
            $("body").bgStretcher({
                images: ["images/sample-2.jpg"],
                imageWidth: 1600,
                imageHeight: 1200
            })
        });
    </script>

<SCRIPT type=text/javascript>
$(document).ready(function() {	
	$("#menu1 li").prepend("<span></span>"); //Throws an empty span tag right before the a tag
	
	$("#menu1 li").each(function() { //For each list item...
		var linkText = $(this).find("a").html(); //Find the text inside of the a tag
		$(this).find("span").show().html(linkText); //Add the text in the span tag
	}); 
	
	$("#menu1 li").hover(function() {	//On hover...
		$(this).find("span").stop().animate({ 
			marginTop: "-40" //Find the span tag and move it up 40 pixels
		}, 250);
	} , function() { //On hover out...
		$(this).find("span").stop().animate({
			marginTop: "0" //Move the span back to its original state (0px)
		}, 250);
	});	
	
	/*	2nd example	*/
	$("#menu2 li").prepend("<span></span>"); //Throws an empty span tag right before the a tag
	
	$("#menu2 li").each(function() { //For each list item...
		var linkText = $(this).find("a").html(); //Find the text inside of the a tag
		$(this).find("span").show().html(linkText); //Add the text in the span tag
	}); 
	
	$("#menu2 li").hover(function() {	//On hover...
		$(this).find("span").stop().animate({ 
			marginTop: "-40" //Find the span tag and move it up 40 pixels
		}, 250);
	} , function() { //On hover out...
		$(this).find("span").stop().animate({
			marginTop: "0" //Move the span back to its original state (0px)
		}, 250);
	});	
});
</SCRIPT>
  </head>
  
  <body>
 <%
String name=(String)session.getAttribute("name"); 
   if(name==null) response.sendRedirect("cache.jsp");%>
<span style="color:white">欢迎你：<%=name %></span> 
<div align="right"><a href="revoke.jsp" >退出当前账号</a></div>
<hr>


  <div id="menu1">
  <ul>
	<li><a href="home.jsp">首　　 页</a></li>
	<li><a href="serv.jsp">服          务</a></li>
	<li><a href="sasion.jsp">留  言   板</a></li>
	<li><a href="person.jsp">成           绩</a></li>
	
  </ul>
  <div class="cls"></div>
</div>
<div id="wrapper">
<form class="sign-in-form" id="form1" name="form1" method="post" action="score">
         	<ul id="form-section">
			<li>
				<label   >
					<span>教务处学号</span>
					<input placeholder="请输入教务处学号" name="name" pattern="[0-9]{10,}"  type="text" tabindex="2" title="同学，必须为教务处学号格式" required autofocus>
				</label>
			</li>
			<li>
				<label>
					<span>密码</span>
					<input placeholder="请输入教务处密码" name="password" pattern=".{6,}" type="password" tabindex="2" title="密码好像不正确呢！" required>
				</label>
			</li>
 <button name="sign-in-submit" type="submit" id="sign-in-submit">登录</button>
 
  
</form>
	</div>				
<hr color="white"  style="margin:460px 0px 0px 20px "/>
<span style="color: white; align:center;">
©2014 三号路  使用三号路前必读 京ICP证030173号     </span>					
  </body>
</html>
